package com.xiaojian.pick.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author whycode
 * @title: UserAddress
 * @projectName campus-secondary-market-app---sys
 * @description: TODO
 * @date 2022/2/208:00
 */

@Data
@Accessors(chain = true)
public class UserAddress {

    private Integer id;
    private String name;
    private String phone;
    private Integer userId;
    private String province;
    private String city;
    private String region;
    private String detail;
    private Short isDefault;
    private Short status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;    // 创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;    // 更新时间

}
